package com.tulingxueyuan.mall.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.tulingxueyuan.mall.modules.pms.model.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.Valid;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PmsProduct对象", description="用于接收商品修改和添加的对象")
public class ProductPramaterDTO extends PmsProduct {

    @ApiModelProperty(value = "会员价格列表")
    private List<PmsMemberPrice> memberPriceList;
    @ApiModelProperty(value = "商品满减列表")
    private List<PmsProductFullReduction> productFullReductionList;
    @ApiModelProperty(value = "商品阶梯价格")
    private List<PmsProductLadder> productLadderList;
    @ApiModelProperty(value = "会员价格列表")
    private List<PmsProductAttributeValue> productAttributeValueList;
    @ApiModelProperty(value = "商品sku库存信息")
//    嵌套认证必须加valid注解
    @Valid
    @Size(min = 1,message = "最少有一条sku信息")
    private List<PmsSkuStock> skuStockList;
}
